﻿using System;

namespace Operators
{
    class Program
    {
        static void Main(string[] args)
        {
            int a = 5;
            int b = 3;
            double t = -4.3;



            int c = a + b;
            c = a - b;
            c = a * b;
            c = a / b;
            c = a % b;
            c = (int)t;
            Console.WriteLine(Math.Sign(t));
            Console.WriteLine(Math.Truncate(t));

            int min = Math.Min(a, b);
            int max = Math.Max(a, b);

            // short comment
            /*
             long comment
             multiline
             */

            // > < >= <= != ==

            bool isOK = a > b;

            if (isOK)
            {
                // expression
            }
            else // a <= b
            {

            }


            int x = 1;
            int y = 2;
            int z = 3;

            //int Max = x;
            //if (y > max)
            //{
            //    Max = y;
            //}
            //if (z > max)
            //{
            //    Max = z;
            //}

            int Max = Math.Max(x, y);
            Max = Math.Max(Max, z);

            int n = 4;
            string day = string.Empty;

            switch (n)
            {
                case 1:
                    day = "Monday";
                    break;
                case 2:
                case 3:
                case 4:
                    day = "Tuesday";
                    break;
                case 5:
                    day = "Friday";
                    break;
                default:
                    day = "Unknown";
                    break;
            }

            int k = 1;
            k = k + 5;
            k += 5;
            { }
            ;
            ;
            k = 1;
            Console.WriteLine(k++); //1
            Console.WriteLine(k);
            k = 1;
            Console.WriteLine(++k); //2

            k -= 1;
            k *= 2;
            k /= 2;

            k = k % 2;
            k %= 2;

            Console.WriteLine("1 + 1 = " + (1 + 1) );
            Console.WriteLine((double)(5 / 2));

            do
            {

            }
            while (false);

            

            for (int i = 0; i < 10 ; i++)
            {
                
            }

            

            int p = 1 / int.Parse("0");
            int l = 1;
            int e = int.MaxValue + l;

            Console.ReadKey();

        }
    }
}
